Next | Prev | Up | Top | Contents | Index
Defining Device Numbers
The topics "Major Device Number" and "Minor Device Number" cover the purpose and use of the device numbers, which can be summarized as follows:
- Both numbers are encoded in the inode of a device special file in /dev.
- The major number selects the device driver.
- The minor number specifies the logical unit, and can encode device features.
- Both numbers are passed as a parameter to driver entry points.
An important part of creating and installing a device driver is the selection of device numbers and the definition of device special files.
- Selecting a Major Number
-
- Selecting Minor Numbers
-
Next | Prev | Up | Top | Contents | Index